﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EFWCoreLib.CoreFrame.Business;
using Books.Entity;

namespace Books.Dao
{
    public class SqlBookDao : AbstractDao, IBookDao
    {
        public List<Book> GetBooks(string searchChar, int flag)
        {
            string strsql = @"SELECT * FROM Books";
            List<Book> list = oleDb.Query<Book>(strsql, null).ToList();
            return list;
        }
    }
}
